M = float(input())
initT = float(input())
finalT = float(input())
Q = M * (finalT - initT) * 4184
print(Q)